package com.tansun.easycare.rule.ml.model.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.tansun.easycare.core.service.impl.CrudServiceImpl;
import com.tansun.easycare.rule.ml.model.dao.MlDataModelDao;
import com.tansun.easycare.rule.ml.model.entity.MlDataModel;
import com.tansun.easycare.rule.ml.model.service.MlDataModelService;

/**
 * 神经网络增删改查ServiceImpl
 * @author zkx
 * @version 2018-08-22
 */
@Service("mlDataModelService")
@Transactional(readOnly = true)
public class MlDataModelServiceImpl extends CrudServiceImpl<MlDataModelDao, MlDataModel> implements MlDataModelService{

	public MlDataModel get(String id) {
		return super.get(id);
	}
	
	public List<MlDataModel> findList(MlDataModel mlDataModel) {
		return super.findList(mlDataModel);
	}
	
	public PageInfo<MlDataModel> findPage(Page<MlDataModel> page, MlDataModel mlDataModel) {
		return super.findPage(page, mlDataModel);
	}
	
	@Transactional(readOnly = false)
	public void save(MlDataModel mlDataModel) {
		super.save(mlDataModel);
	}
	
	@Transactional(readOnly = false)
	public void delete(MlDataModel mlDataModel) {
		super.delete(mlDataModel);
	}
	
	@Transactional(readOnly = false)
	public void update(MlDataModel mlDataModel) {
		super.dao.update(mlDataModel);
	}
	@Transactional(readOnly = false)
	public void updateDataFile(MlDataModel mlDataModel){
		super.dao.updateDataFile(mlDataModel);
	}
	@Transactional(readOnly = false)
	public void updateModelStatus(MlDataModel mlDataModel){
		super.dao.updateModelStatus(mlDataModel);
	}
	
	@Transactional(readOnly = false)
	public MlDataModel findByModelId(MlDataModel mlDataModel) {
		return super.dao.findByModelId(mlDataModel);
	}

	@Override
	public int getIdentify() {
		return super.dao.getIdentify();
	}
}